package com.example.hello.model;

import jdk.jfr.DataAmount;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
@Data
public class Book {
//    @Value("${book.book_name}");
//    private String name;
//    @Value("${book.author}");
//    private String author;

    @Value("${book.book_name}")
    private String name;
    @Value("${book.author}")
    private String author;
    @Value("${book.desc}")
    private String desc;
}
